<?php
header( "Content-type: text/html; charset=utf-8" );
$price1 = 1000;
$disc = 80;
$new_price = $price1 * 0.8;

//计算价格

$people = "所有VIP会员";
echo sprintf( "元旦折扣！%s乐享%d%%优惠", $people, $disc ) . "<br>";
echo sprintf( "原价￥%.2f的商品现价￥%.2f就能带回家", $price1, $new_price );